home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Freeware 2002 November
/
SGI Freeware 2002 November - Disc 3.iso
/
dist
/
fw_qt3.idb
/
usr
/
freeware
/
Qt
/
examples
/
trayicon
/
Makefile.z
/
Makefile
Wrap
Makefile
|
2002-04-08
|
4KB
|
138 lines
#############################################################################
# Makefile for building: trayicon
# Generated by qmake (1.02a) on: Fri Apr 5 11:00:15 2002
# Project: trayicon.pro
# Template: app
# Command: $(QMAKE) trayicon.pro
#############################################################################
####### Compiler, tools and options
CC = cc
CXX = CC
LEX = flex
YACC = yacc
CFLAGS = -n32 -woff 1021,1209,1233,1314,1355,1375,1506 -fullwarn -O2 -OPT:Olimit=3000 -DQT_NO_DEBUG -DQT_SHARED
CXXFLAGS = -n32 -LANG:ansi-for-init-scope=ON:bool=ON -woff 1021,1209,1233,1314,1355,1375,1506,1681,1682,3496 -fullwarn -O2 -OPT:Olimit=3000 -DQT_NO_DEBUG -DQT_SHARED
LEXFLAGS =
YACCFLAGS= -d
INCPATH = -I$(QTDIR)/include -I.moc/release/ -I$(QTDIR)/mkspecs/irix-n32
LINK = CC
LFLAGS = -n32
LIBS = $(SUBLIBS) -Wl,-rpath,/xlv1/freeware/2002.May/qt/3.0.3/src.diffbuild/qt-x11-free-3.0.3/lib -L/xlv1/freeware/2002.May/qt/3.0.3/src.diffbuild/qt-x11-free-3.0.3/lib -lqt -lGLU -lGL -lXmu -lm -lICE -lSM -lXext -lX11 -lm
AR = CC -ar -o
RANLIB =
MOC = $(QTDIR)/bin/moc
UIC = $(QTDIR)/bin/uic
QMAKE = qmake
TAR = tar -cf
GZIP = gzip -9f
COPY = cp -f
COPY_FILE= $(COPY) -p
COPY_DIR = $(COPY) -pR
DEL_FILE = rm -f
DEL_DIR = rmdir
MOVE = mv
####### Output directory
OBJECTS_DIR = .obj/release/
####### Files
HEADERS = trayicon.h
SOURCES = main.cpp \
trayicon.cpp
OBJECTS = .obj/release/main.o \
.obj/release/trayicon.o
FORMS =
UICDECLS =
UICIMPLS =
SRCMOC = .moc/release/moc_trayicon.cpp
OBJMOC = .obj/release/moc_trayicon.o
DIST =
QMAKE_TARGET = trayicon
DESTDIR =
TARGET = trayicon
first: all
####### Implicit rules
.SUFFIXES: .c .cpp .cc .cxx .C
.cpp.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cc.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cxx.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.C.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.c.o:
$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
####### Build rules
all: Makefile $(TARGET)
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)
mocables: $(SRCMOC)
$(MOC):
( cd $(QTDIR)/src/moc ; $(MAKE) )
Makefile: trayicon.pro ../../.qmake.cache $(QTDIR)/mkspecs/irix-n32/qmake.conf ../../lib/libqt.prl
$(QMAKE) trayicon.pro
qmake:
@$(QMAKE) trayicon.pro
dist:
@mkdir -p .obj/release/trayicon && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) .obj/release/trayicon/ && ( cd `dirname .obj/release/trayicon` && $(TAR) trayicon.tar trayicon && $(GZIP) trayicon.tar ) && mv `dirname .obj/release/trayicon`/trayicon.tar.gz . && rm -rf .obj/release/trayicon
mocclean:
-rm -f $(OBJMOC)
-rm -f $(SRCMOC)
uiclean:
clean: mocclean
-rm -f $(OBJECTS)
-rm -f -r $(OBJECTS_DIR)so_locations $(OBJECTS_DIR)ii_files
-rm -f *~ core *.core
####### Sub-libraries
distclean: clean
-rm -f $(TARGET) $(TARGET)
FORCE:
####### Compile
.obj/release/main.o: main.cpp trayicon.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/release/main.o main.cpp
.obj/release/trayicon.o: trayicon.cpp trayicon.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/release/trayicon.o trayicon.cpp
.obj/release/moc_trayicon.o: .moc/release/moc_trayicon.cpp trayicon.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/release/moc_trayicon.o .moc/release/moc_trayicon.cpp
.moc/release/moc_trayicon.cpp: $(MOC) trayicon.h
$(MOC) trayicon.h -o .moc/release/moc_trayicon.cpp
####### Install
install: all
uninstall: